<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理平台</title>
<style type="text/css">
.row-even{background-color:#def7c2;}
.row-odd{background-color:#AADC6E;}
</style>
</head>
<body>
	<center>
		<s:form action="UserListAction.do" name="queryForm" method="post" theme="simple">
			<s:label value="用户名" /><s:textfield name="usersName" />
			<s:submit name="loginBtn" value="查询" />
		</s:form>
	</center>
	<table width="720" align="center" border="1">
		<tr align="center">
			<th>用户名</th>
			<th>昵称</th>
			<th>年龄</th>
			<th>性别</th>
			<th>动作</th>
		</tr>
		<s:iterator var="row" value="#attr.rows" status="status">
			<tr align="center" height="30" class="<s:if test="#status.even">row-even</s:if><s:else>row-odd</s:else>">
				<td><s:property value="#row.usersName"/></td>
				<td><s:property value="#row.nickName"/></td>
				<td><s:property value="#row.age"/></td>
				<td><s:property value="#row.sex"/></td>
				<td>
				 	<img src="../image/edit.gif">
				 	<a href="UserUpdateAction!showOnPage.do?usersId=<s:property value="#row.usersId"/>">
				 		修改</a>&nbsp;&nbsp;
				 	<img src="../image/delete.gif">
				 	<a href="UserDeleteAction.do?usersId=<s:property value="#row.usersId"/>">
				 		删除</a>
				</td>
				
			</tr>
		</s:iterator>
		<tr>
					<td colspan="6" align="center"><img src="../image/user.gif"><a href="UserRegisterAction!showPage.do">添加</a></td>
			</tr>
	</table>
</body>
</html>